cachedir=../../../cache
LEXERPATH=../../../code/xrnlib/app/lexer/

all_files="$LEXERPATH./inc/lexhelp_backend.h $LEXERPATH./src/lexhelp_backend.c $LEXERPATH./inc/lexhelp.h $LEXERPATH./src/lexhelp.c $LEXERPATH./inc/lexer_main.h $LEXERPATH./inc/lexexample_backend.h $LEXERPATH./src/lexexample_backend.c $LEXERPATH./inc/lexexample.h $LEXERPATH./src/lexexample.c $LEXERPATH./inc/lexcheck.h $LEXERPATH./inc/lexcheck_backend.h $LEXERPATH./src/lexer_main.c $LEXERPATH./src/lexcheck.c $LEXERPATH./src/lexcheck_backend.c $LEXERPATH./src/lexscript.c $LEXERPATH./src/lexscript_backend.c $LEXERPATH./inc/lexscript.h $LEXERPATH./inc/lexscript_backend.h ../../../code/xrnlib/app/main/src/main.c"

rm -fr $cachedir/*
cp $all_files $cachedir/

gcc -Wall -Wconversion -Wformat -Wformat-security -Wnonnull  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3  -fdata-sections -ffunction-sections -Wl,--gc-sections -DXRN_GNU_LINUX -DXCOMPILELEXERONLY=1 \
$cachedir/* -o xrnlib-cli
